#判断一个数是不是水仙花数, 返回True/False
#例如: 153 = 1**3 + 5**3 + 3**3
# 2021-8-7 Nasa

def shui_num(sws=153):
    b=sws//100
    s=(sws-b*100)//10
    g=sws-b*100-s*10
    a=b**3+s**3+g**3
    if a==sws:
        return True
    else:
        return False

if __name__ == '__main__':
    print(shui_num(371))
